package cn.liit.weixin.message.model.resp;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import cn.liit.weixin.message.type.RespMessageType;

/**
 * 图片消息
 * @author boqi.zhang
 *
 */
@XStreamAlias("xml")
public class ImageMessage extends RespBaseMessage{
		
	private Image Image;//图片消息模型
	
	public ImageMessage(Image image) {
		super(RespMessageType.RESP_MESSAGE_TYPE_IMAGE.getType());
		Image = image;
	}

	public Image getImage() {
		return Image;
	}

	public void setImage(Image image) {
		Image = image;
	}

	@Override
	public String toString() {
		return "ImageMessage [Image=" + Image + "]";
	}
	public static class Image {
		
		private String MediaId;//通过素材管理接口上传多媒体文件，得到的id。

		public Image() {
			super();
		}

		public Image(String mediaId) {
			super();
			MediaId = mediaId;
		}

		public String getMediaId() {
			return MediaId;
		}

		public void setMediaId(String mediaId) {
			MediaId = mediaId;
		}

		@Override
		public String toString() {
			return "Image [MediaId=" + MediaId + "]";
		}
	}
}
